<div id="best_sales">
    <div class="box527titleblue">
        <h1>Les meilleures ventes {$topic.nom} {if isset($cat)}/ {$cat.nom}{/if}</h1>
    </div>
    <div class="box527content">
        {if isset($cat)}
           {foreach from=$cat.bestSells item=product name=bestsales}
                {include file="boxes/product.tpl"}
                {if $smarty.foreach.bestsales.iteration%3==0}
                    <div class='clear'></div>
                {/if}
           {/foreach}
           {if $smarty.foreach.bestsales.iteration%3!=0}<div class="clear"></div>{/if}
       {else}
           {foreach from=$topic.bestSells item=product name=bestsales}
                {include file="boxes/product.tpl"}
                {if $smarty.foreach.bestsales.iteration%3==0}
                    <div class='clear'></div>
                {/if}
           {/foreach}
           {if $smarty.foreach.bestsales.iteration%3!=0}<div class="clear"></div>{/if}
       {/if}
    </div>
    <div class="box527ass"></div>
</div>